#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright © 2018-2019 Ariadne Devos
#
# Run this script if you have a lot of untracked files in your tree,
# before pushing to the public repo.

if [ ! -d smoke-build ]; then
  mkdir smoke-build
else
  rm -r smoke-build
  mkdir smoke-build
fi

cd smoke-build

git --work-tree=. --git-dir=../.git checkout HEAD -- .
autoreconf
./configure
make
